import request from '@/utils/request'

// 查询烟田移栽情况列表
export function listTransplant(query) {
  return request({
    url: '/system/transplant/list',
    method: 'get',
    params: query
  })
}

// 查询烟田移栽情况详细
export function getTransplant(id) {
  return request({
    url: '/system/transplant/' + id,
    method: 'get'
  })
}

// 新增烟田移栽情况
export function addTransplant(data) {
  return request({
    url: '/system/transplant',
    method: 'post',
    data: data
  })
}

// 修改烟田移栽情况
export function updateTransplant(data) {
  return request({
    url: '/system/transplant',
    method: 'put',
    data: data
  })
}

// 删除烟田移栽情况
export function delTransplant(id) {
  return request({
    url: '/system/transplant/' + id,
    method: 'delete'
  })
}
